import request from '../utils/request';
//生产配置管理业务接口文档
const api = {
  // 获取匹配的生产机台列表数据
  GetMatchProduceMachineList(data?: any) {
    return request({
      url: '/api/ProduceMachine/GetMatchProduceMachineList',
      method: 'post',
      data,
    });
  },
  // 获取某个生产机台的设备数据byMachineCode
  GetProduceMachinesEquipmentsByMachineCode(data?: any) {
    return request({
      url: '/api/ProduceMachine/GetProduceMachinesEquipmentsByMachineCode',
      method: 'post',
      data,
    });
  },
  //分页获取生产机台列表数据
  GetPageProduceMachineList(data?: any) {
    return request({
      url: '/api/ProduceMachine/GetPageProduceMachineList',
      method: 'post',
      data,
    });
  },
  //创建生产机台
  CreateProduceMachine(data?: any) {
    return request({
      url: '/api/ProduceMachine/CreateProduceMachine',
      method: 'post',
      data,
    });
  },
  //修改生产机台数据
  UpdateProduceMachine(data?: any) {
    return request({
      url: '/api/ProduceMachine/UpdateProduceMachine',
      method: 'post',
      data,
    });
  },
  //禁用/启用生产机台
  StopOrStartProduceMachine(data?: any) {
    return request({
      url: '/api/ProduceMachine/StopOrStartProduceMachine',
      method: 'post',
      data,
    });
  },
  //删除生产机台
  DeleteProduceMachine(data?: any) {
    return request({
      url: '/api/ProduceMachine/DeleteProduceMachine',
      method: 'post',
      data,
    });
  },
  //获取生产机台详情数据
  GetProduceMachineDetail(data?: any) {
    return request({
      url: '/api/ProduceMachine/GetProduceMachineDetail',
      method: 'post',
      data,
    });
  },
};
export default api;
